package com.pig4cloud.pig.module.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 用户领取口罩和袋子的记录对象 device_draw_record
 *
 * @author ruoyi
 * @date 2022-06-13
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("device_draw_record")
public class DeviceDrawRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
	@TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 用户微信id
     */
    private Integer userId;

    /**
     * 设备id
     */
    private Integer deviceId;

    /**
     * 设备名称
     */
	@Excel(name = "设备名称")
    private String deviceName;

    /**
     * 领取数量
     */
    private Integer count;

    /**
     * 领取时间
     */
    @TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 取的类型 0 - 袋子 1 - 口罩
     */
    private Integer getType;


	/**
	 * 设备编号
	 */
	@Excel(name = "设备编号")
	@TableField(exist = false)
	private String deviceSn;


	@Excel(name = "领取类型")
	@TableField(exist = false)
	private String getTypeName;

	@TableField(exist = false)
	private String beginDate;

	@TableField(exist = false)
	private String endDate;

	@Excel(name = "领取用户")
	@TableField(exist = false)
	private String nickName;


	@Excel(name = "领取时间")
	@TableField(exist = false)
	private String createTimeStr;

	@TableField(exist = false)
	private String faceUrl;

	@Excel(name = "所属小区")
	@TableField(exist = false)
	private String estateName;
}
